#!/bin/bash
basedir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo "base dir is $basedir"
cd $basedir
compiler=./installed/bin/protoc
SRC_DIR=$basedir
DST_DIR=$basedir
$compiler -I=$SRC_DIR --cpp_out=$DST_DIR $SRC_DIR/addressbook.proto